<template>
  <div>
    <div class="pd">
      <el-row :gutter="12">
        <el-col :span="4">
          <el-card shadow="always">
            <el-button
              class="el-icon-plus"
              size="mini"
              type="primary"
              @click="toRoute"
            >
              判定指纹真假
            </el-button>
          </el-card>
        </el-col>
        <el-col :span="4">
          <el-card shadow="always">
            <el-button
              class="el-icon-plus"
              size="mini"
              type="primary"
              @click="toRoute2"
            >
              判定笔迹相似度
            </el-button>
          </el-card>
        </el-col>
      </el-row>

      <el-row :gutter="12">
        <el-col :span="4" v-if="roleType == 0">
          <el-card shadow="always">
            <el-button
              class="el-icon-plus"
              size="mini"
              type="primary"
              @click="toRoute3"
            >
              普通用户加急判定指纹真假
            </el-button>
          </el-card>
        </el-col>
        <el-col :span="4" v-if="roleType == 0">
          <el-card shadow="always">
            <el-button
              class="el-icon-plus"
              size="mini"
              type="primary"
              @click="toRoute4"
            >
              普通用户加急判定笔迹相似度
            </el-button>
          </el-card>
        </el-col>
      </el-row>
    </div>
  </div>
</template>

<script>
export default {
  name: "Otherpage3",
  data() {
    return {
      dialogFormVisible: false,
    };
  },
  computed: {
    roleType() {
      return localStorage.getItem("userRole");
    },
  },
  methods: {
    toRoute() {
      this.$router.push({ path: "/judgefin" });
    },
    toRoute2() {
      this.$router.push({ path: "/judgebit" });
    },
    toRoute3() {
      this.$router.push({ path: "/urgentfin" });
    },
    toRoute4() {
      this.$router.push({ path: "/urgentsign" });
    },
    uploadFile() {
      console.log("uploadFile!");
    },
  },
};
</script>

<style lang="scss" scoped>
.pd {
  padding: 15px;
  background-color: #fff;
  border-radius: 2px;
  margin-bottom: 12px;
}
</style>
